<!--{template header}--><!--contain start-->
<div class="wrapper">
<div class="body_container">
    <div class="container_24">
        <!--{template user/user_nav}-->
		<!--main start-->
        <section class="clearfix section">
            <!--{template user/user_side}-->
            <div class="show_panel container_24 po_re">
                <div class="prefix_3 grid_21">
                    <div class="panel clearfix box">
                        <!--main content-->
                        <div class="">
                            <!--header内容头部 start-->
                            <header class="clearfix box_header">
                                <h2 class="grid_4 alpha omega box_title t_c">{$_lang['trading_rights']}</h2>
                                <div class="grid_17 alpha omega">
                                    <nav class="box_nav">
                                        <ul>
                                        	{if $op!='complaint'}
                                            {loop $third_nav $k $v}
                                            <li {if $role==$v['2']}class="selectedLava"{/if}>
                                                <a href="index.php?do={$do}&view={$view}&op={$op}&role={$v['2']}#userCenter" title="{$v['1']}">{$v['0']}</a>
                                            </li>
                                            {/loop}
											{else}
											<li {if $role==1}class="selectedLava"{/if}>
                                                <a href="index.php?do={$do}&view={$view}&op={$op}&role=1}#userCenter" title="提出的建议">提出的建议</a>
                                            </li>
											{/if} 
                                        </ul>
                                    </nav>
                                </div>
                                <div class="clear">
                                </div>
                            </header>
                            <!--header内容头部 end-->
							
							
							<!--detail内容 start-->
                            <article class="box_detail">
                                <!--messages消息 start-->
                                <div class="messages m_warn clearfix">
                                    <div class="icon16 fl_l">warning</div>
                                    <div class="grid_18">{if $op!='rights'}
                                    {$_lang['and_being']}{$transrights_type[$op]['1']}{$_lang['were_no_actual_transactions_but_found_in']}[{$_K['html_title']}]{$_lang['there_are_irregularities_can_be']}{$transrights_type[$op]['1']}{$_lang['way_to_inform']}[{$_K['html_title']}]，{$transrights_type[$op]['1']}{$_lang['anonymous']}
                                    {else}
                                    {$_lang['and']}{$transrights_type[$op]['1']}{$_lang['some_problems_can_be']}{$transrights_type[$op]['1']}{$_lang['way_to_inform']}[{$_K['html_title']}]，{$transrights_type[$op]['1']}{$_lang['the_realname']}
                                    {/if}
									</div>
                                </div>
                                <!--messages消息 end-->
                                <div class="">
                                    <!--from表单 start-->
                                    <div class="clearfix box pad10">
                                        <form action="{$url}#userCenter" method="post" id="frm">
                                            <input type="hidden" name="page" value="{$page}">
                                            <div class="rowElem clearfix">
                                                <div class="mr_20 fl_l">
                                                    <label class="t_l fl_l">
                                                        {$transrights_type[$op]['1']}{$_lang['type']}{$_lang['zh_mh']}
                                                    </label>
                                                    <select class="fl_l" name="obj">
                                                        {loop $transrights_object $k $v}<option value="$k" {if $k==$obj}selected="selected"{/if}>{$v} </option>
                                                        {/loop}
                                                    </select>
                                                </div>
                                                <div class="mr_20 fl_l">
                                                    <label class="t_l fl_l">
                                                        {$transrights_type[$op]['1']}{$_lang['status']}{$_lang['zh_mh']}
                                                    </label>
                                                    <select class="fl_l" name="status" style="width:70px">
                                                        <option value="" {if !$status}selected{/if}>{$_lang['all']}</option>
                                                        {loop $transrights_status $k $v}<option value="$k" {if $k==$status}selected="selected"{/if}>{$v} </option>
                                                        {/loop}
                                                    </select>
                                                </div>
                                                <div class="mr_20 fl_l">
                                                    <label class="t_l fl_l">
                                                        {$_lang['order_way']}{$_lang['zh_mh']}
                                                    </label>
                                                    <select class="fl_l" name="ord" style="width:100px">
                                                        {loop $ord_arr $k $v}<option value="$k" {if $k==$ord}selected="selected"{/if}>{$v} </option>
                                                        {/loop}
                                                    </select>
                                                </div>
                                                <div class="mr_20 fl_l">
                                                    <label class="fl_l t_l">
                                                        {$_lang['pagination']}{$_lang['zh_mh']}
                                                    </label>
                                                    <select class="fl_l" name="page_size">
                                                        <option value="10" {if $page_size=='10'}selected="selected"{/if}>{$_lang['page_size']}10{$_lang['tiao']}</option>
                                                        <option value="20" {if $page_size=='20'}selected="selected"{/if}>{$_lang['page_size']}20{$_lang['tiao']}</option>
                                                        <option value="30" {if $page_size=='30'}selected="selected"{/if}>{$_lang['page_size']}30{$_lang['tiao']}</option>
                                                    </select>
                                                </div>
                                                <div class="fl_r">
                                                    <button class="block" type="submit" name="sbt_search" value="{$_lang['search']}"><span class="icon magnifier"></span>{$_lang['search']}</button>
                                                </div>
                                            </div>
                                        </form>
                                        <!--date_table数据表格 start-->
                                        <div class="data_list mt_10">
                                            <table cellpadding="0" cellspacing="0" class="data_table">
                                                <thead>
                                                    <tr>
                                                        <th scope="col">
                                                            {$transrights_object[$obj]}{$_lang['id']}
                                                        </th>
                                                        <th scope="col">
                                                            {if $role=='1'&&$op!='complaint'}{$_lang['be']}{/if}{$transrights_type[$op]['1']}{$_lang['people']}
                                                        </th>
                                                        {if $op=='complaint'}
                                                        <th scope="col">
                                                            {$transrights_type[$op]['1']}{$_lang['content']}
                                                        </th>
                                                        {/if}
                                                        <th scope="col">
                                                            {$transrights_type[$op]['1']}{$_lang['attachment']}
                                                        </th>
                                                        <th scope="col">
                                                            {$_lang['start_time']}
                                                        </th>
                                                        <th scope="col">
                                                            {$_lang['current_status']}
                                                        </th>
                                                        <th scope="col" class="t_c">
                                                            {$_lang['operate']}
                                                        </th>
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                 {if $report_list}
                                                    {loop $report_list $v}
                                                    <tr>
                                                        <td>
                                                        	{if $op=='complaint'}
                                                             #{$v['report_id']}
															{else}
															 #{$v['obj_id']}
															{/if}
                                                        </td>
                                                        <td>
                                                        	{if $op=='complaint'}
                                                              <a href="index.php?do=space&member_id=$v[uid]" target="_blank">{$v['username']}</a>
                                                            {else}
															 <a href="index.php?do=space&member_id=<!--{eval if($role=='1')echo $v['to_uid'];else echo $v['uid'];}-->" target="_blank">{if $role=='1'}{$v['to_username']}{else}{$v['username']}{/if}</a>
															{/if}
														</td>
                                                        {if $op=='complaint'}
                                                        <td scope="col">
                                                            {if $v['report_desc']}<!--{eval echo kekezu::cutstr(strip_tags($v['report_desc']),60)."..."}-->{else}
                                                            {$_lang['no_contents']}
                                                            {/if}
                                                        </td>
                                                        {/if}
                                                        <td>
                                                            <!--{eval $filename=substr($v['report_file'],strrpos($v['report_file'],'/')+1);}-->{if $v['report_file']}<a href="{$ac_url}&ac=download&filename=$filename&filepath={$v['report_file']}">{$filename}</a>{else}{$_lang['not_submitted_attachments']}{/if}
                                                        </td>
                                                        <td>
                                                            <!--{date('Y-m-d',$v['on_time'])}-->
                                                        </td>
                                                        <td>
                                                            $transrights_status[$v['report_status']]
                                                        </td>
                                                        <td class="t_c">
                                                            {if $op!='complaint'}
                                                            {if $v['obj']=='task'||'work'}<!--任务、稿件--><a href="index.php?do=task&task_id={$v['origin_id']}" target="_blank">{elseif $v['obj']=='order'}<!--商品订单--><a href="index.php?do=user&view=finance&op=order&obj_type=service&order_id={$v['obj_id']" target="_blank">{elseif $v['obj']=='product'}<!--商品--><a href="shop.php?do=service&sid={$v['origin_id']" target="_blank">{elseif $v['obj']=='seller'}<!--商家--><a href="index.php?do=space&member_id={$v['to_uid']" target="_blank">{/if}
                                                                        {$_lang['view_belongs']}{$transrights_object[$obj]}</a> {/if}
                                                                    {if $v['report_status']=='1'}<a href="javascript:del('{$v['report_id']}','{$v['report_file']}');">{$_lang['delete']}</a> {/if}
                                                        </td>
                                                        </tr>
                                                     {/loop}
                                                   {else}
                                                     <tr>
														   <td colspan="7" class="t_c">
	                                                            {$_lang['norecord']}
	                                                        </td>
	                                                    </tr>
                                                   {/if}
                                                                </tbody>
                                                            </table>
                                                            </div>
                                                    
                                                     <!--data_table数据表格 end-->
                                                     <div class="page">
                                                         <p>
                                                             {$pages['page']} 
                                                         </p>
                                                     </div>
                                                </div>
                                                <!--from表单 end-->
                                                </div>
                                                    </article>
                                                    <!--detail内容 end-->
                                                    </div>
                                                </div>
                                                <!--main content end -->
                                                <div class="clear">
                                                </div>
                                                </div>
                                            </div>
                                            </section>
                                            <!--main end-->
                                        </div>
                                    </div>
                                    <!--contain end-->
         <!--{template user/user_footer}-->
<script type="text/javascript">
	function del(report_id,report_file)
	{
		showDialog("{$_lang['deleted_site_will_no_longer_accept_this_provision']}{$transrights_type[$op]['1']}{$_lang['info']}","confirm","{$_lang['operate_tips']}",
		function(){
			var url = "{$url}&ac=del&report_id="+report_id+"&filepath="+report_file;
			formSub(url,'url',false);
			//location.href="{$url}&ac=del&report_id="+report_id+"&filepath="+report_file;			
		},function(){
			return false;
		});
	}
</script>
 <!--{template footer}-->
